package com.usefullc.crawler.query;

import com.usefullc.common.enums.QueryExpressTypeEnum;
import com.usefullc.common.enums.ValidTypeEnum;
import com.usefullc.system.query.BaseQuery;
import com.usefullc.system.validator.UsefulPropertyVerify;
import com.usefullc.system.service.component.extend.UsefulQueryField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 爬虫主活动实例查询实体
 * @author: 星空
 * @date: 2022-12-14
 */
@ApiModel
@Data
public class ActiveMainInstanceQuery extends BaseQuery {

//useful_auto_generate_section_start

    @UsefulQueryField()
    @UsefulPropertyVerify()
    @ApiModelProperty(notes = "活动ID")
    private Long activeId;

    @UsefulQueryField()
    @UsefulPropertyVerify()
    @ApiModelProperty(notes = "实例ID")
    private Long activeProcessId;

    @UsefulQueryField()
    @UsefulPropertyVerify(min=-2147483648, max=2147483647)
    @ApiModelProperty(notes = "失败数")
    private Integer failNum;

    @UsefulQueryField()
    @UsefulPropertyVerify(minLen=2, maxLen=50)
    @ApiModelProperty(notes = "名称")
    private String name;

    @UsefulQueryField()
    @UsefulPropertyVerify(min=-2147483648, max=2147483647)
    @ApiModelProperty(notes = "状态（0 初始； 1 成功；2 失败 ")
    private Integer status;

    @UsefulQueryField()
    @UsefulPropertyVerify(min=-2147483648, max=2147483647)
    @ApiModelProperty(notes = "成功数")
    private Integer successNum;

    @UsefulQueryField()
    @UsefulPropertyVerify()
    @ApiModelProperty(notes = "模板ID")
    private Long templateId;

    @UsefulQueryField()
    @UsefulPropertyVerify(min=-2147483648, max=2147483647)
    @ApiModelProperty(notes = "总数")
    private Integer totalNum;


//useful_auto_generate_section_end

    @UsefulQueryField(columnName = "status",type = QueryExpressTypeEnum.IN)
    @ApiModelProperty(notes = "状态")
    private List<Integer> statusList;
}
